from celery.result import AsyncResult
from s1 import app

asyncs = AsyncResult(id="19247111-d3f9-43e9-b6c4-8dea3111456d", app=app)

data = asyncs.get()
print(data)

if asyncs.successful():
    result = asyncs.get()
    print(result)
    # result.forget() # 将结果删除
elif asyncs.failed():
    print('执行失败')
elif asyncs.status == 'PENDING':
    print('任务等待中被执行')
elif asyncs.status == 'RETRY':
    print('任务异常后正在重试')
elif asyncs.status == 'STARTED':
    print('任务已经开始被执行')
